home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
-
- global proc manipRotateValues ( string $toolName ) {
-
- string $parent = (`toolPropertyWindow -q -location` + "|manipRotate");
- setParent $parent;
-
- // Initialize settings
- //
-
- int $manipMode = `manipRotateContext -q -mode $toolName`;
- switch ($manipMode)
- {
- case 0:
- radioButtonGrp -e -sl 1 manipModeRadio;
- $manipMode = 1;
- break;
- case 1:
- radioButtonGrp -e -sl 2 manipModeRadio;
- $manipMode = 2;
- break;
- case 2:
- radioButtonGrp -e -sl 3 manipModeRadio;
- $manipMode = 3;
- break;
- }
-
- radioButtonGrp -e
- -nrb 2
- -on1 ("manipRotateContext -e -mode 0 " + $toolName)
- -on2 ("manipRotateContext -e -mode 1 " + $toolName)
- -on3 ("manipRotateContext -e -mode 2 " + $toolName)
- -select $manipMode
- manipModeRadio;
-
- int $isSnap = `manipRotateContext -q -snap $toolName`;
- int $isRelative = `manipRotateContext -q -snapRelative $toolName`;
- float $snapVal = `manipRotateContext -q -snapValue $toolName`;
-
- checkBoxGrp -e -v1 $isSnap manipRotateSnapCheck;
- checkBoxGrp -e -enable $isSnap -v1 $isRelative manipRotateSnapRelative;
- floatFieldGrp -e -enable $isSnap -v1 $snapVal manipRotateSnapValue;
-
- checkBoxGrp -e
- -cc1 ("manipRotateContext -e -snap #1 " + $toolName)
- manipRotateSnapCheck;
-
- checkBoxGrp -e
- -cc1 ("manipRotateContext -e -snapRelative #1 " + $toolName)
- manipRotateSnapRelative;
-
- floatFieldGrp -e
- -cc ("manipRotateContext -e -snapValue #1" + " " + $toolName )
- manipRotateSnapValue;
-
-
- string $helpTag = "RotateTool";
- toolPropertySetCommon $toolName "manipRotate.xpm" $helpTag;
- toolPropertySelect "manipRotate";
- }
-